/**************************************************************************** **
 * Copyright (C) 2001-2022 Inhand Networks, Inc.
 **************************************************************************** **/

/* ************************************************************************** **
 *     MODULE NAME            : system
 *     LANGUAGE               : C
 *     TARGET ENVIRONMENT     : Any
 *     FILE NAME              : arith.h
 *     FIRST CREATION DATE    : 2023/04/23
 * --------------------------------------------------------------------------
 *     Version                : 1.0
 *     Author                 : EExuke
 *     Last Change            : 2023/04/23
 *     FILE DESCRIPTION       : API exported to external moduels
** ************************************************************************** */
#ifndef _ARITH_H_
#define _ARITH_H_

/*------------------Macro Definition-------------------------*/
/*------------------End of Macro Definition------------------*/

/*------------------API Definition---------------------------*/
extern int Arith_max(int x, int y);
extern int Arith_min(int x, int y);
extern int Arith_div(int x, int y);
extern int Arith_mod(int x, int y);
extern int Arith_ceiling(int x, int y); //向右取整
extern int Arith_floor(int x, int y);   //向左取整
/*------------------End of API Definition--------------------*/

#endif /* End of _ARITH_H_ */

